void reverse(int* a, int sz)
{
	int i = 0;
	int left = 0;
	int right = sz - 1;
	for (left = 0, right = sz - 1; left < right; left++, right--)
	{
		int tem = a[left];
		a[left] = a[right];
		a[right] = tem;
	}
	for (i = 0; i < 10; i++)
	{
		printf("%d ", a[i]);
	}
}
#include <stdio.h>
int main()
{
	int a[10] = { 0 };
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		a[i] = 0;
		printf("%d ", a[i]);
	}
	printf("\n");
	for (i = 0; i < 10; i++)
	{
		a[i] = i;
	}
	int sz = sizeof(a) / sizeof(a[0]);
	reverse(a, sz);
	return 0;
}